home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1999 January - Disc 2
/
Macworld (1999-01) (Disk 2).dmg
/
Serious Demos
/
Symbolic Composer 4.2
/
Environment
/
System
/
MRAC
/
Intervals
/
i-expansion-series
< prev
next >
Wrap
Lisp/Scheme
|
1998-10-27
|
2KB
|
84 lines
i-expansion-series seed count max-interval step change-count interval
(setq intervals1
(i-expansion-series nil 40 6
'(1 -1 2 -2) '(1 2 3) '(-6 -5 3 4)))
(setq intervals2
(i-expansion-series .56 40 6
'(1 -1 2 -2) '(1 2 3) '(-6 -5 3 4)))
(i-process 'a6 'piano intervals1)
(i-process nil 'piano intervals2)
With out a range of interval:
(i-expansion-series nil 40 nil
'(1 -1 2 -2) '(1 2 3) '(-6 -5 3 4))
(i-expansion-series .56 40 nil
'(1 -1 2 -2) '(1 2 3) '(-6 -5 3 4))
;;; -----------------------------------------------------------------------------
;;;
;;; Copyright © 1997 MRAC
;;; Author: Janusz Podrazik
;;; Created: 1997/09/17
;;; Example: i-expansion
;;;
;;; -----------------------------------------------------------------------------
(setq sym-par1
(i-process 'c7 'c2 'c8
(flatten
(i-expansion-series .097568 100 nil
'(1 -1 2 -2) '(1 2) '(-12 -5 3 12)))))
(setq sym-par2
(i-process 31 'c2 'c8
(flatten
(i-expansion-series .543540 100 nil
'(1 -1 2 -2) '(1 2) '(31 6 -24 4)))))
(setq symbol1 (flatten (list sym-par1 sym-par2 (reverse sym-par1))))
(setq symbol2 (symbol-transpose~ -9 (subseq symbol1 88 (length symbol1))))
(setq len (length symbol2))
(setq length (gen-repeat len '(1/32)))
(setq velocity
(cfunction
(vector-resynthesize
4
(gen-noise-white len 1 .06832) nil t)
(g-integer 40 63)))
(def-symbol
piano symbol2)
(def-length
piano length)
(def-zone
piano (make-zone (length-of piano)))
(def-velocity
piano velocity)
(def-channel
piano k2000i-1)
(def-program k2000p
piano stereo-grand)
(def-tonality
piano (activate-tonality (chromatic c 5)))
(def-tempo 72)
(compile-instrument-p
"ccl;output:" "i-expansion.midi" piano)